package com.example.pet.service.impl;

import com.example.pet.dao.SupplyDao;
import com.example.pet.entity.Supply;
import com.example.pet.service.SupplyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SupplyServiceImpl implements SupplyService {
    @Resource
    private SupplyDao supplyDao;


    @Override
    public List<Supply> queryAll() {
        return supplyDao.queryAll();
    }

    @Override
    public Supply queryById(Integer supplyId) {
        return supplyDao.selectById(supplyId);
    }
}
